import { Descendant } from 'slate';

export const describePath = 'rich-text-slate-readme';
export const describe: Descendant[] = [
  {
    children: [
      {
        text: '这是富文本编辑器的介绍，不支持编辑。如果想体验编辑功能，可以打开任意路径下的链接。比如',
      },
      {
        children: [
          {
            text: 'https://rich-text-slate-8gasanut98b526a2-1257745907.tcloudbaseapp.com/#/rich-text-slate-test',
          },
        ],
        type: 'link',
      },
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '富文本编辑器',
      },
    ],
    type: 'heading1',
  },
  {
    children: [
      {
        text: '文本编辑功能',
      },
    ],
    type: 'heading2',
  },
  {
    children: [
      {
        text: '文本基础样式支持',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        children: [
          {
            text: '加粗',
            bold: true,
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '斜体',
            italic: true,
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '下划线',
            underline: true,
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '中划线',
            strike: true,
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '背景颜色',
            background: '#e04242',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '字体变色',
            background: '#ffffff',
            color: '#de3535',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '超链接：',
          },
          {
            children: [
              {
                text: 'http://www.baidu.com',
              },
            ],
            type: 'link',
          },
          {
            text: '',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '',
          },
          {
            children: [
              {
                text: '',
              },
            ],
            type: 'link',
          },
          {
            text: '不同的字体：',
          },
          {
            text: '宋体',
            fontFamily: 'SimSun, STSong, sans-serif',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '不同的字号：',
          },
          {
            text: '47号',
            fontSize: '47px',
          },
        ],
        type: 'list-item',
      },
    ],
    type: 'unordered-list',
  },
  {
    children: [
      {
        text: '左右缩进',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        children: [
          {
            text: '左右缩进',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            children: [
              {
                children: [
                  {
                    text: '我是右缩进',
                  },
                ],
                type: 'list-item',
              },
            ],
            type: 'unordered-list',
          },
        ],
        type: 'unordered-list',
      },
    ],
    type: 'unordered-list',
  },
  {
    children: [
      {
        children: [
          {
            children: [
              {
                text: '我是左缩进',
              },
            ],
            type: 'list-item',
          },
        ],
        type: 'unordered-list',
      },
      {
        children: [
          {
            text: '我是引用',
          },
        ],
        type: 'block-quote',
      },
    ],
    type: 'unordered-list',
  },
  {
    children: [
      {
        text: '多选功能',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '选择1',
      },
    ],
    type: 'check-list',
  },
  {
    children: [
      {
        text: '选择2',
      },
    ],
    type: 'check-list',
    checked: true,
  },
  {
    children: [
      {
        text: '选择3',
      },
    ],
    type: 'check-list',
  },
  {
    children: [
      {
        text: '支持不同标题：标题1-标题6',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '历史功能：',
      },
    ],
    type: 'heading2',
  },
  {
    children: [
      {
        text: '撤销和重做',
      },
    ],
    type: 'paragraph',
  },
  {
    type: 'heading2',
    children: [
      {
        text: 'markdown支持：',
      },
    ],
  },
  {
    type: 'paragraph',
    children: [
      {
        text: '支持使用简单缩写',
      },
    ],
  },
  {
    children: [
      {
        children: [
          {
            text: ' ## #： 标题',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: '  - ：无序列表',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: ' 1. 有序列表',
          },
        ],
        type: 'list-item',
      },
    ],
    type: 'unordered-list',
  },
  {
    children: [
      {
        text: '快捷键支持：',
      },
    ],
    type: 'heading2',
  },
  {
    children: [
      {
        children: [
          {
            text: 'cmd+b：加粗',
          },
        ],
        type: 'list-item',
      },
      {
        children: [
          {
            text: 'cmd+i：斜体',
          },
        ],
        type: 'list-item',
      },
    ],
    type: 'unordered-list',
  },
  {
    children: [
      {
        text: '搜索查找高亮',
      },
    ],
    type: 'heading2',
  },
  {
    children: [
      {
        text: '快捷键是 cmd + f',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '协同编辑',
      },
    ],
    type: 'heading2',
  },
  {
    children: [
      {
        text: '如想体验协同编辑，只需要在同一路径下打开多个网站即可。比如同时打开 多个 ',
      },
      {
        children: [
          {
            text: 'https://rich-text-slate-8gasanut98b526a2-1257745907.tcloudbaseapp.com/#/rich-text-slate-test',
          },
        ],
        type: 'link',
      },
      {
        text: ' 路径。',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '代码块',
      },
    ],
    type: 'heading2',
  },
  {
    children: [
      {
        text: 'const a = 1;',
        code: true,
      },
    ],
    type: 'codeBlock',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '嵌入一个网站',
      },
    ],
    type: 'heading2',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'website',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
  {
    children: [
      {
        text: '',
      },
    ],
    type: 'paragraph',
  },
];
